<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-08-20 11:50:11
 * @LastEditTime: 2019-09-18 14:19:23
 * @LastEditors: Please set LastEditors
 -->
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
    <f:layout name="Echarts" />

    This template displays a NEW form for the current domain object.

    If you modify this template, do not forget to change the overwrite settings
    in /Configuration/ExtensionBuilder/settings.yaml:
    Resources:
    Private:
    Templates:
    New.html: keep

    Otherwise your changes will be overwritten the next time you save the extension in the extension builder

    <f:section name="content">
        <f:flashMessages />

        <f:render partial="FormErrors" />

        <div class="panel panel-default">
            <div class="panel-body">
                <f:form action="update" name="echarts" object="{echarts}" id="form_echarts">
                    <f:form.hidden name="euid" value="{echarts.uid}" />
                    <fieldset>
                        <div class="modal-body">
                            <div class="row">
                                <div class="portlet-title">
                                    <legend>图表基本配置</legend>
                                </div>
                                <f:render partial="Echarts/FormFields" arguments="{_all}" />
                            </div>
                        </div>
                        <div class="modal-body">
                            <f:switch expression="{echarts.echart}">
                                <f:case value="bar"><f:render partial="Datas/Bar" arguments="{_all}" /></f:case>
                                <f:case value="line"><f:render partial="Datas/Line" arguments="{_all}" /></f:case>
                                <f:case value="pie"><f:render partial="Datas/Pie" arguments="{_all}" /></f:case>
                                <f:case value="pyramid"><f:render partial="Datas/Pyramid" arguments="{_all}" /></f:case>
                                <f:case value="funnel"><f:render partial="Datas/Funnel" arguments="{_all}" /></f:case>
                                <f:defaultCase>没有该类图表</f:defaultCase>
                            </f:switch>
        
                        </div>
        
                        <div class="horizontal-space"></div>
                        <div class="form-buttons">
                            <f:form.submit class="btn btn-success" value="保存数据" />
                            <f:link.action action="list" class="btn btn-default">返回列表</f:link.action>
                        </div>
                    </fieldset>
                </f:form>
            </div>
        </div>
    </f:section>
</html>